package com.mzj.saas.mservice.sys.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 企业用户表
 */
@Entity
@Table(name = "saas_user")
public class User{
	

	@Id
	private String id;
	/**
	 * 用户名称
	 */
	@Column(name = "name", nullable = true)
	private String name;
	/**
	 * 手机号码
	 */
	@Column(name = "mobile", nullable = true)
	private String mobile;
	/**
	 * 邮箱
	 */
	@Column(name = "email", nullable = true)
	private String email;
	/**
	 * 密码
	 */
	@Column(name = "password", nullable = true)
	private String password;
	/**
	 * 盐值
	 */
	@Column(name = "salt", nullable = true)
	private String salt;
	/**
	 * 通信号码
	 */
	@Column(name = "wrong_number", nullable = true)
	private Integer wrongNumber;
	/**
	 * 状态: 0 禁用 1启用 2已离职
	 */
	@Column(name = "status", nullable = true)
	private Short status;
	/**
	 * 状态: 0 禁用 1启用 2已离职
	 */
	@Column(name = "type", nullable = true)
	private Short type;
	/**
	 * 直属主管
	 */
	@Column(name = "is_user_id", nullable = true)
	private Long isUserId;
	/**
	 * 职位
	 */
	@Column(name = "position", nullable = true)
	private String position;
	/**
	 * 入职时间
	 */
	@Column(name = "entry_time", nullable = true)
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date entryTime;
	/**
	 * 工号
	 */
	@Column(name = "job_number", nullable = true)
	private String jobNumber;
	/**
	 * 创建时间
	 */
	@Column(name = "create_time", nullable = true)
	private Date createTime;
	/**
	 * 离职日期
	 */
	@Column(name = "leave_date", nullable = true)
	private Date leaveDate;
	/**
	 * 离职操作人
	 */
	@Column(name = "operator_id", nullable = true)
	private String operatorId;
	/**
	 * 密码状态：1默认密码 2非默认密码
	 */
	@Column(name = "password_status", nullable = true)
	private Integer passwordStatus;

	public Integer getPasswordStatus() {
		return passwordStatus;
	}

	public void setPasswordStatus(Integer passwordStatus) {
		this.passwordStatus = passwordStatus;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public Integer getWrongNumber() {
		return wrongNumber;
	}

	public void setWrongNumber(Integer wrongNumber) {
		this.wrongNumber = wrongNumber;
	}

	public Short getStatus() {
		return status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

	public Short getType() {
		return type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	public Long getIsUserId() {
		return isUserId;
	}

	public void setIsUserId(Long isUserId) {
		this.isUserId = isUserId;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public Date getEntryTime() {
		return entryTime;
	}

	public void setEntryTime(Date entryTime) {
		this.entryTime = entryTime;
	}

	public String getJobNumber() {
		return jobNumber;
	}

	public void setJobNumber(String jobNumber) {
		this.jobNumber = jobNumber;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLeaveDate() {
		return leaveDate;
	}

	public void setLeaveDate(Date leaveDate) {
		this.leaveDate = leaveDate;
	}

	public String getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(String operatorId) {
		this.operatorId = operatorId;
	}
}
